package o;

import android.graphics.Canvas;
import android.os.Build.VERSION;
import android.view.View;
import androidx.core.view.ViewCompat;
import androidx.recyclerview.widget.RecyclerView;
import o.ly.c;

class mj implements mk {
    static final mk ˏ = new mj();

    mj() {
    }

    public void ˏ(Canvas canvas, RecyclerView recyclerView, View view, float f, float f2, int i, boolean z) {
        if (VERSION.SDK_INT >= 21 && z && view.getTag(c.ˏ) == null) {
            Float valueOf = Float.valueOf(ViewCompat.ˊॱ(view));
            ViewCompat.ˋ(view, 1.0f + ˏ(recyclerView, view));
            view.setTag(c.ˏ, valueOf);
        }
        view.setTranslationX(f);
        view.setTranslationY(f2);
    }

    private static float ˏ(RecyclerView recyclerView, View view) {
        int childCount = recyclerView.getChildCount();
        float f = 0.0f;
        for (int i = 0; i < childCount; i++) {
            View childAt = recyclerView.getChildAt(i);
            if (childAt != view) {
                float ˊॱ = ViewCompat.ˊॱ(childAt);
                if (ˊॱ > f) {
                    f = ˊॱ;
                }
            }
        }
        return f;
    }

    public void ˎ(Canvas canvas, RecyclerView recyclerView, View view, float f, float f2, int i, boolean z) {
    }

    public void ˋ(View view) {
        if (VERSION.SDK_INT >= 21) {
            Object tag = view.getTag(c.ˏ);
            if (tag != null && (tag instanceof Float)) {
                ViewCompat.ˋ(view, ((Float) tag).floatValue());
            }
            view.setTag(c.ˏ, null);
        }
        view.setTranslationX(0.0f);
        view.setTranslationY(0.0f);
    }

    public void ˎ(View view) {
    }
}
